package cn.exrick.xboot.modules.assessment.dao.mapper;

import cn.exrick.xboot.modules.ReportExcel.OutPutAssessmentVo;
import cn.exrick.xboot.modules.assessment.entity.HkAssessmentScore;
import cn.exrick.xboot.modules.assessment.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * 权限数据处理层
 * @author Exrick
 */
public interface HkAssessmentScoreMapper extends BaseMapper<HkAssessmentScore> {
    List<Map<String,Object>> selectScoreByHontUserOnDepartementId(String beginDate, String endDate, String departmentId);
    List<Map<String,Object>> selectPlusByHontUserOnDepartementId(String beginDate, String endDate, String departmentId);
    List<Map<String,Object>> selectMinusByHontUserOnDepartementId(String beginDate, String endDate, String departmentId);
   int selectCountByHontUserOnDepartementId(String beginDate, String endDate, String departmentId);
    List<Map<String,Object>> selectByHontUserOnDepartementId(String beginDate, String endDate, String departmentId);
    List<Map<String,Object>> selectCountsByHontUser(String id);
    List<HkAssessmentScoreGroupByUser> selectHkAssessmentScoreGroupByUser(String beginDate, String endDate, String departmentId,String businessType);
    List<HkAssessmentScoreGroupByUser> selectHkAssessmentScoreGroupByUserAndflowTemplateId(OutPutAssessmentVo outPutAssessmentVo);
    List<HkAssessmentDetailVo> selectHkAssessmentDetailVo(String beginDate, String endDate, String departmentId,String businessType);
    List<SubmitUserVo> getSubmitUserDetail(@Param("processInstanceIds") List<String> processInstanceIds);
    List<ApproverDetailVo> getApproverDetail(String processId);
    List<HkAssessmentScoreCountDataVo> getHkAssessmentScoreCountData(String beginDate, String endDate, String departmentId, String businessType);
    List<HkAssessmentScorePlusOrMinusVo> getHkAssessmentScorePlus(String beginDate, String endDate, String departmentId, String businessType);
    List<HkAssessmentScorePlusOrMinusVo> getHkAssessmentScoreMinus(String beginDate, String endDate, String departmentId, String businessType);
}